//package org.stoneProject.template.service;
//
//import org.springframework.cache.annotation.Cacheable;
//import org.springframework.stereotype.Component;
//import org.stoneProject.template.domain.UserInfo;
//
//@Component
//public class CacheDemo {
//    @Cacheable(value = "test",key = "#key")
//    public UserInfo getCache(String key){
//        UserInfo userInfo = new UserInfo();
//        userInfo.setId("12");
//        userInfo.setUsername("1234");
//        return userInfo;
//    }
//}
